package com.dykj.fireFighting.api.socialUnit.xfxg.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;


/**
 * @Description 消防巡更-巡更报告
 * @Author LIJIANJIE
 * @Date  2021-06-23 11:19:32
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "消防巡更报告")
@TableName("patrol_report")
public class PatrolReport extends Model<PatrolReport> {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
    @ApiModelProperty(value = "id")
	@TableId
	private String id;
	/**
	 * 创建人
	 */
    @ApiModelProperty(value = "创建人")
	@TableField("create_by")
	private String createBy;
	/**
	 * 创建时间
	 */
    @ApiModelProperty(value = "创建时间")
	@TableField("create_time")
	private Date createTime;
	/**
	 * 删除标识 0已删除 1未删除
	 */
    @ApiModelProperty(value = "删除标识 0已删除 1未删除")
	@TableField("is_del")
	private Integer isDel;
	/**
	 * 修改人
	 */
    @ApiModelProperty(value = "修改人")
	@TableField("update_by")
	private String updateBy;
	/**
	 * 修改时间
	 */
    @ApiModelProperty(value = "修改时间")
	@TableField("update_time")
	private Date updateTime;
	/**
	 * 单位id
	 */
    @ApiModelProperty(value = "单位id")
	@TableField("unit_id")
	private String unitId;
	/**
	 * 报告名称
	 */
    @ApiModelProperty(value = "报告名称")
	private String name;
	/**
	 * 巡更时间
	 */
    @ApiModelProperty(value = "巡更时间")
	@TableField("patrol_time")
	private Date patrolTime;
	/**
	 * 巡更人
	 */
    @ApiModelProperty(value = "巡更人")
	@TableField("patrol_persion")
	private String patrolPersion;
	/**
	 * 巡更人电话
	 */
    @ApiModelProperty(value = "巡更人电话")
	@TableField("persion_phone")
	private String persionPhone;
	/**
	 * 文件id
	 */
    @ApiModelProperty(value = "文件id")
	@TableField("file_id")
	private String fileId;
	/**
	 * 计划id
	 */
	@ApiModelProperty(value = "计划id")
	@TableField("plan_id")
    private String planId;

	@ApiModelProperty(value = "是否合格")
	@TableField("is_qualified")
	private Integer isQualified;

    @TableField(exist = false)
    private List<PatrolReportRecord> patrolReportRecordList;

}
